package com.lovo.cloud.controller;

import com.lovo.cloud.redis.RedisDAO;
import com.lovo.cloud.service.MovieScheduleService;
import com.lovo.cloud.util.SerializeUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import redis.clients.jedis.Jedis;
import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author luo
 * @since 2020-12-07
 */
@RestController
public class MovieScheduleController {

    @Resource
    private MovieScheduleService movieScheduleService;

    @GetMapping("/movieSchedule")
    public Object find(String movieName){
        Map map = movieScheduleService.findByMovieId(movieName);
        return map;
    }
}

